<?php 	
session_start();
ob_start();
//ini_set("display_errors", 0);
	define("HST", "localhost");
	define("USR", "getbid13_M1kH38i");
	define("PWD", "P044C92JeTx%^wOMujYg");
	define("DBN", "getbid13_uQ0t1Fy2Oi3");
	
	define("DBTYPE", "mysql");
	define('SITE_URL','http://getbids.hopto.org');
	define('DOC_ROOT','/home/getbid13/public_html');
	define('DOC_ROOT_COMMON','/home/getbid13/public_html');
	define('BASEFOLDER', '/home/getbid13/public_html');
	define('TEMPLATEDIR','../templates/default/');
	define('TEMPLATEDIR_ADMIN','../templates/admin/');
	
	#------ (Do not upload fckeditor folder on server. We have added it in demo/common/includes/fckeditor). ---- #
	define("FCKEDITOR_BASEPATH", "../../includes/fckeditor/");
	
	## Common JS files path for server
	// Below JS files are available in demo/common/includes/js/
	#1 jquery-1.2.1.min.js
	#2 jquery.validate.min.js
	#3 jquery-1.2.6.pack.js
	
	define('SITE_URL_COMMON','/home/getbid13/public_html');
	define("COMMON_JS_PATH", SITE_URL."/includes/js");

	## Set time zone
	date_default_timezone_set('Asia/Calcutta');

	/*********** Creating Object of Smarty ***********/
	require(DOC_ROOT.'/includes/libs/Smarty.class.php');
	$smarty = new Smarty;
	$smarty->force_compile = true;
	/*********** End of Creating Object of Smarty ***********/
	
	## Assign site url to smarty variable
	$smarty->assign("siteroot", SITE_URL);
	
	## Below file contains all the tables of the project
	include_once(DOC_ROOT.'/includes/tbl-names.php');
	
	## Below file contains all the contstant which we used in this project
	include_once(DOC_ROOT.'/includes/constants.php');
	
	## Assign site title to smarty variable
	$smarty->assign("sitetitle", TITLE);
	
/********************************************/	
	## FCKEditor file path - LOCAL and SERVER
	define("INCLUDE_FCKEDITOR", DOC_ROOT_COMMON."/includes/fckeditor/fckeditor.php");

	## JS files path for local and server in smarty variable
	$smarty->assign("common_js_path", COMMON_JS_PATH);
	
	## Assign header, footer and left menu files to smarty variables
	if(strstr($_SERVER['PHP_SELF'], "/admin/")){
		/****** Admin side  ***/
		$smarty->assign("header_start", TEMPLATEDIR_ADMIN .'admin_header1.tpl');
		$smarty->assign("header_end", TEMPLATEDIR_ADMIN .'admin_header2.tpl');
		$smarty->assign("footer", TEMPLATEDIR_ADMIN .'footer.tpl');
		$smarty->assign("left_menu", TEMPLATEDIR_ADMIN . "left_menu.tpl");
	}else{
		/****** User side  ***/
		$smarty->assign("header_start", TEMPLATEDIR .'header1.tpl');
		$smarty->assign("header_end", TEMPLATEDIR .'header2.tpl');
		$smarty->assign("footer", TEMPLATEDIR .'footer.tpl');
		$smarty->assign("cms_left", TEMPLATEDIR .'cms_left.tpl');
		$smarty->assign("cms_left_content", TEMPLATEDIR .'cms_left_content.tpl');
	}
?>